package com.bleeth.fx.component;

import cn.hutool.json.JSONObject;
import javafx.beans.property.SimpleListProperty;
import javafx.scene.layout.Region;
import lombok.Builder;
import lombok.Singular;

import java.util.List;

/**
 * @author ：Bleeth
 * @date ：2021-11-16
 * @description：
 */
@Builder
public class MDataGird {

    @Singular
    private List<Column> columns;

    private String color;

    private boolean border;

    private boolean stripe;

    private SimpleListProperty<JSONObject> data;

    public Region make() {


        return null;
    }


    @Builder
    public static class Column {

        private String prop;
        private String label;
        private double width;
        private int span;
        private String type;
        private String align;


    }

    public static void main(String[] args) {

    }


}
